import {createApp} from 'vue'
import App from '@/App.vue'
import router from '@/router/index';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import pinia from '@/store/index'


const app = createApp(App)

//全局导入饿了么图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

//并通过use，使用路由
app.use(pinia)
app.use(router)
app.use(ElementPlus)

app.mount("#app");


